#ifndef F_Demo_SaFC_h
#define F_Demo_SaFC_h

// ***********************************************************************

// class EDROOMTopContext

// ***********************************************************************



class EDROOMTopContext {

protected:

enum EDROOMDemo_SaFSignal { EDROOMSignalTimeout, EDROOMSignalDestroy, SToListening, SToStandBy };


	friend class Demo_SaF;

	Demo_SaF &EDROOMcomponent;

	CEDROOMMessage * &Msg;

	CEDROOMMessage * &MsgBack;

	//Ports

	CEDROOMInterface & SsiCtrl;

	enum edroomStateId{I, Dummy};

	enum IdTrans{Init,  EDROOMMEMORIA };

	//Constantes



	//Variables



	//Pool



	// CONSTRUCTORES

	EDROOMTopContext (Demo_SaF &act );

	EDROOMTopContext ( EDROOMTopContext &contex );

public:

	bool EDROOMSearchContextTrans(TEDROOMTransId &edroomCurrentTrans);

	void EDROOMNuevoMens () { EDROOMcomponent.EDROOMNewMsg(); }

	// Funciones Definidas por el usuario

	void	FInit();

};

// ***********************************************************************

// class EDROOMTopState

// ***********************************************************************



class EDROOMTopState : public EDROOMTopContext {

protected:



	EDROOMTopContext::edroomStateId edroomCurrentState;

	EDROOMTopContext::edroomStateId edroomNextState;

	//Variables



	//Pools



public:

	// CONSTRUCTOR

	EDROOMTopState (Demo_SaF &act );


	// EDROOMBehaviour**********************************************

	void EDROOMBehaviour();

	// Inicio**********************************************

	void EDROOMInicio();

	// ***********************************************************************

	// SubEstado Inicial 

	// ***********************************************************************



	TEDROOMTransId EDROOMIllegada();

	// ***********************************************************************

	// SubEstado Hoja Dummy

	// ***********************************************************************



	TEDROOMTransId EDROOMDummyllegada();

};


#endif
